package com.jiuyi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiuyi.entity.Employee;
import com.jiuyi.entity.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * DATA: 2022/10/24
 * Author: 晨夕
 */
@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {
    //查询订单
    List<Orders> selectByPage(@Param("page")int page,@Param("pageSize") int pageSize);
    //后台查看订单明细
    List<Orders> selectByPages(@Param("page")int page,@Param("pageSize") int pageSize,@Param("number") String number, @Param("orderTime")LocalDateTime orderTime,@Param("checkoutTime") LocalDateTime checkoutTime);
    //后台查看订单明细
    int selectByPageCount(@Param("number") String number, @Param("orderTime")LocalDateTime orderTime,@Param("checkoutTime") LocalDateTime checkoutTime);
    //修改派送状态
    void updateStatusById(@Param("status") int status,@Param("id") Long id);
}
